home *** CD-ROM | disk | FTP | other *** search
/ Pluspack 1 / Caligari Corporation Pluspack1 1998.iso / TSX_SDK / tsxINC / ItsxApplication.h next >
Encoding:
C/C++ Source or Header  |  1998-01-28  |  1.3 KB  |  42 lines

  1. //******************************************************************************
  2. //    File: ItsxApplication.h
  3. //  Module: trueSpace eXtensions API
  4. //   Descr: Declarations for the ItsxApplication COM interface
  5. //******************************************************************************
  6.  
  7.  
  8. #ifndef ITSXAPPLICATION_H
  9. #define ITSXAPPLICATION_H
  10.  
  11.  
  12. #include "itsxcommon.h"
  13.  
  14. typedef struct ItsxDocument* PITSXDOCUMENT;
  15.  
  16.  
  17. #undef INTERFACE
  18. #define INTERFACE ItsxApplication
  19.  
  20. DECLARE_INTERFACE_(ItsxApplication, IUnknown)
  21. {
  22.     // IUnknown members
  23.     STDMETHOD(QueryInterface) (THIS_ REFIID, PPVOID) PURE;
  24.     STDMETHOD_(ULONG, AddRef)  (THIS) PURE;
  25.     STDMETHOD_(ULONG, Release) (THIS) PURE;
  26.  
  27.     // ItsxApplication members
  28.     STDMETHOD(GetTrueSpaceVersionNumbers) (THIS_ short*, short*) PURE;
  29.     STDMETHOD(GetMainViewHwnd) (THIS_ HWND*) PURE;
  30.     STDMETHOD(GetFirstDocument) (THIS_ PITSXDOCUMENT*) PURE;
  31.     STDMETHOD(GetActiveDocument) (THIS_ PITSXDOCUMENT*) PURE;
  32. };
  33.  
  34. // typedef a pointer to this interface
  35. typedef ItsxApplication* PITSXAPPLICATION;
  36.  
  37. // define a GUID for this interface
  38. // {B887D600-2F64-11d1-A255-006097D15F58}
  39. DEFINE_GUID(IID_ItsxApplication, 0xb887d600, 0x2f64, 0x11d1, 0xa2, 0x55, 0x0, 0x60, 0x97, 0xd1, 0x5f, 0x58);
  40.  
  41.  
  42. #endif // ITSXAPPLICATION_H